<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>

<div>
	<s:form action="search" namespace="/child" method="post">

	 <table id="commonTable" class="blueTbl" cellpadding="0" cellspacing="0" width="100%">
	   <tr>
	   	<th colspan="6"><s:text name="search.search"></s:text></th>
	   </tr>

	   <tr>

     	 <td>
	   	  <table>
	   	  	
	   		 <s:textfield name="child.name" label="Name"  cssStyle="width:120px"></s:textfield>
	 	  </table>
     	 </td>
     	  <td>
	   	  <table>
	   		<s:textfield name="child.fullName" label="Full Name" cssStyle="width:200px"/>
	 	  </table>
     	 </td>
     	 <td>
	   	  <table>
	   		<s:select name="child.sexType" label="Gender" list="genderTypeList" listKey="listKey" listValue="listValue" emptyOption="true"/>
	 	  </table>
     	 </td>
     	 <td style="width:300px">&nbsp;</td>
       </tr>
       <tr>
         <td colspan="2">
         	<table>
	   			<s:select name="child.childGroup" label="Group" list="childGroupList" listKey="listKey" listValue="listValue" emptyOption="true"/>
	 	  	</table>
         </td>
     	 <td style="text-align: right" >
     	  <table>
     	    <tr>
     	     <td>
		   	  	<table>
		  			<sj:submit value="SEARCH" targets="childResultDiv"/>
		  		</table>
		  	 </td>
		  	 <td>
		  		<table>
		  			<s:reset value="CLEAR"/>
		  		</table>
		  	 </td>
		  	</tr>
	  	   </table>
     	 </td>
		<td>&nbsp;</td>
       </tr>
       <tr>
     	 <td style="text-align: right; padding-right: 10px" colspan="4">

			<s:url var="childAddUrl" action="add"
				namespace="/child" includeParams="none"></s:url>

			<s:url var="childListUrl" action="list"
				namespace="/child" includeParams="none"></s:url>

			<s:url var="childDeletedListUrl" action="deleted-list"
				namespace="/child" includeParams="none"></s:url>

			<s:url var="childSummaryUrl" action="summary"
				namespace="/child" includeParams="none"></s:url>
				
			<s:url var="childReportUrl" action="report"
				namespace="/child" includeParams="none"></s:url>


     		<sj:a href="%{#childAddUrl}" targets="childResultDiv"><s:text name="search.add"></s:text></sj:a>  |
     		<sj:a href="%{#childSummaryUrl}" targets="childResultDiv"><s:text name="search.summary"></s:text></sj:a> |
		<%-- 	<sj:a href="%{#childReportUrl}" targets="childResultDiv">Generate Report</sj:a> | --%>
			<sj:a href="%{#childListUrl}" targets="childResultDiv"><s:text name="search.activeList"></s:text></sj:a> |
			<sj:a href="%{#childDeletedListUrl}" targets="childResultDiv"><s:text name="search.deletedList"></s:text></sj:a>
		</td>
		</tr>
	  </table>
	</s:form>

</div>